package com.sqstudio.view
{
	import com.sqstudio.ui.DescMc;
	
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class DescPanel extends Sprite
	{
		private var _descMC:DescMc;
		public function DescPanel()
		{
			this._descMC = new DescMc();
			addChild(this._descMC);
			this.mouseEnabled = this.mouseChildren = false;
			var txtArr:Array = [this._descMC.gongTxt,this._descMC.fsvTxt,this._descMC.NumTxt,this._descMC.nongTxt];
			for each(var txt:TextField in txtArr){
				txt.mouseEnabled = txt.selectable = false;
			}
		}
		
		public function updateData(arr:Array):void{
			this._descMC.gongTxt.text=arr[0];
			this._descMC.fsvTxt.text=arr[1];
			this._descMC.NumTxt.text = arr[2];
			this._descMC.nongTxt.text = arr[3];
		}
	}
}